home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMLocation.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  11KB  |  291 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMLocation.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMLocation_h__
  6. #define __gen_nsIDOMLocation_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMLocation */
  19. #define NS_IDOMLOCATION_IID_STR "a6cf906d-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMLOCATION_IID \
  22.   {0xa6cf906d, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMLocation : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLOCATION_IID)
  29.  
  30.   /**
  31.             * These properties refer to the current location of the document.
  32.             * This will correspond to the URI shown in the location bar, which
  33.             * can be different from the documentURI of the document.
  34.             */
  35.   /* attribute DOMString hash; */
  36.   NS_IMETHOD GetHash(nsAString & aHash) = 0;
  37.   NS_IMETHOD SetHash(const nsAString & aHash) = 0;
  38.  
  39.   /* attribute DOMString host; */
  40.   NS_IMETHOD GetHost(nsAString & aHost) = 0;
  41.   NS_IMETHOD SetHost(const nsAString & aHost) = 0;
  42.  
  43.   /* attribute DOMString hostname; */
  44.   NS_IMETHOD GetHostname(nsAString & aHostname) = 0;
  45.   NS_IMETHOD SetHostname(const nsAString & aHostname) = 0;
  46.  
  47.   /* attribute DOMString href; */
  48.   NS_IMETHOD GetHref(nsAString & aHref) = 0;
  49.   NS_IMETHOD SetHref(const nsAString & aHref) = 0;
  50.  
  51.   /* attribute DOMString pathname; */
  52.   NS_IMETHOD GetPathname(nsAString & aPathname) = 0;
  53.   NS_IMETHOD SetPathname(const nsAString & aPathname) = 0;
  54.  
  55.   /* attribute DOMString port; */
  56.   NS_IMETHOD GetPort(nsAString & aPort) = 0;
  57.   NS_IMETHOD SetPort(const nsAString & aPort) = 0;
  58.  
  59.   /* attribute DOMString protocol; */
  60.   NS_IMETHOD GetProtocol(nsAString & aProtocol) = 0;
  61.   NS_IMETHOD SetProtocol(const nsAString & aProtocol) = 0;
  62.  
  63.   /* attribute DOMString search; */
  64.   NS_IMETHOD GetSearch(nsAString & aSearch) = 0;
  65.   NS_IMETHOD SetSearch(const nsAString & aSearch) = 0;
  66.  
  67.   /* [noscript] void reload (in boolean forceget); */
  68.   NS_IMETHOD Reload(PRBool forceget) = 0;
  69.  
  70.   /* void replace (in DOMString url); */
  71.   NS_IMETHOD Replace(const nsAString & url) = 0;
  72.  
  73.   /* void assign (in DOMString url); */
  74.   NS_IMETHOD Assign(const nsAString & url) = 0;
  75.  
  76.   /* DOMString toString (); */
  77.   NS_IMETHOD ToString(nsAString & _retval) = 0;
  78.  
  79. };
  80.  
  81. /* Use this macro when declaring classes that implement this interface. */
  82. #define NS_DECL_NSIDOMLOCATION \
  83.   NS_IMETHOD GetHash(nsAString & aHash); \
  84.   NS_IMETHOD SetHash(const nsAString & aHash); \
  85.   NS_IMETHOD GetHost(nsAString & aHost); \
  86.   NS_IMETHOD SetHost(const nsAString & aHost); \
  87.   NS_IMETHOD GetHostname(nsAString & aHostname); \
  88.   NS_IMETHOD SetHostname(const nsAString & aHostname); \
  89.   NS_IMETHOD GetHref(nsAString & aHref); \
  90.   NS_IMETHOD SetHref(const nsAString & aHref); \
  91.   NS_IMETHOD GetPathname(nsAString & aPathname); \
  92.   NS_IMETHOD SetPathname(const nsAString & aPathname); \
  93.   NS_IMETHOD GetPort(nsAString & aPort); \
  94.   NS_IMETHOD SetPort(const nsAString & aPort); \
  95.   NS_IMETHOD GetProtocol(nsAString & aProtocol); \
  96.   NS_IMETHOD SetProtocol(const nsAString & aProtocol); \
  97.   NS_IMETHOD GetSearch(nsAString & aSearch); \
  98.   NS_IMETHOD SetSearch(const nsAString & aSearch); \
  99.   NS_IMETHOD Reload(PRBool forceget); \
  100.   NS_IMETHOD Replace(const nsAString & url); \
  101.   NS_IMETHOD Assign(const nsAString & url); \
  102.   NS_IMETHOD ToString(nsAString & _retval); 
  103.  
  104. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  105. #define NS_FORWARD_NSIDOMLOCATION(_to) \
  106.   NS_IMETHOD GetHash(nsAString & aHash) { return _to GetHash(aHash); } \
  107.   NS_IMETHOD SetHash(const nsAString & aHash) { return _to SetHash(aHash); } \
  108.   NS_IMETHOD GetHost(nsAString & aHost) { return _to GetHost(aHost); } \
  109.   NS_IMETHOD SetHost(const nsAString & aHost) { return _to SetHost(aHost); } \
  110.   NS_IMETHOD GetHostname(nsAString & aHostname) { return _to GetHostname(aHostname); } \
  111.   NS_IMETHOD SetHostname(const nsAString & aHostname) { return _to SetHostname(aHostname); } \
  112.   NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
  113.   NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \
  114.   NS_IMETHOD GetPathname(nsAString & aPathname) { return _to GetPathname(aPathname); } \
  115.   NS_IMETHOD SetPathname(const nsAString & aPathname) { return _to SetPathname(aPathname); } \
  116.   NS_IMETHOD GetPort(nsAString & aPort) { return _to GetPort(aPort); } \
  117.   NS_IMETHOD SetPort(const nsAString & aPort) { return _to SetPort(aPort); } \
  118.   NS_IMETHOD GetProtocol(nsAString & aProtocol) { return _to GetProtocol(aProtocol); } \
  119.   NS_IMETHOD SetProtocol(const nsAString & aProtocol) { return _to SetProtocol(aProtocol); } \
  120.   NS_IMETHOD GetSearch(nsAString & aSearch) { return _to GetSearch(aSearch); } \
  121.   NS_IMETHOD SetSearch(const nsAString & aSearch) { return _to SetSearch(aSearch); } \
  122.   NS_IMETHOD Reload(PRBool forceget) { return _to Reload(forceget); } \
  123.   NS_IMETHOD Replace(const nsAString & url) { return _to Replace(url); } \
  124.   NS_IMETHOD Assign(const nsAString & url) { return _to Assign(url); } \
  125.   NS_IMETHOD ToString(nsAString & _retval) { return _to ToString(_retval); } 
  126.  
  127. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  128. #define NS_FORWARD_SAFE_NSIDOMLOCATION(_to) \
  129.   NS_IMETHOD GetHash(nsAString & aHash) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHash(aHash); } \
  130.   NS_IMETHOD SetHash(const nsAString & aHash) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHash(aHash); } \
  131.   NS_IMETHOD GetHost(nsAString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
  132.   NS_IMETHOD SetHost(const nsAString & aHost) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHost(aHost); } \
  133.   NS_IMETHOD GetHostname(nsAString & aHostname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHostname(aHostname); } \
  134.   NS_IMETHOD SetHostname(const nsAString & aHostname) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHostname(aHostname); } \
  135.   NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
  136.   NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHref(aHref); } \
  137.   NS_IMETHOD GetPathname(nsAString & aPathname) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPathname(aPathname); } \
  138.   NS_IMETHOD SetPathname(const nsAString & aPathname) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPathname(aPathname); } \
  139.   NS_IMETHOD GetPort(nsAString & aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
  140.   NS_IMETHOD SetPort(const nsAString & aPort) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPort(aPort); } \
  141.   NS_IMETHOD GetProtocol(nsAString & aProtocol) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProtocol(aProtocol); } \
  142.   NS_IMETHOD SetProtocol(const nsAString & aProtocol) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProtocol(aProtocol); } \
  143.   NS_IMETHOD GetSearch(nsAString & aSearch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearch(aSearch); } \
  144.   NS_IMETHOD SetSearch(const nsAString & aSearch) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearch(aSearch); } \
  145.   NS_IMETHOD Reload(PRBool forceget) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reload(forceget); } \
  146.   NS_IMETHOD Replace(const nsAString & url) { return !_to ? NS_ERROR_NULL_POINTER : _to->Replace(url); } \
  147.   NS_IMETHOD Assign(const nsAString & url) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assign(url); } \
  148.   NS_IMETHOD ToString(nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToString(_retval); } 
  149.  
  150. #if 0
  151. /* Use the code below as a template for the implementation class for this interface. */
  152.  
  153. /* Header file */
  154. class nsDOMLocation : public nsIDOMLocation
  155. {
  156. public:
  157.   NS_DECL_ISUPPORTS
  158.   NS_DECL_NSIDOMLOCATION
  159.  
  160.   nsDOMLocation();
  161.  
  162. private:
  163.   ~nsDOMLocation();
  164.  
  165. protected:
  166.   /* additional members */
  167. };
  168.  
  169. /* Implementation file */
  170. NS_IMPL_ISUPPORTS1(nsDOMLocation, nsIDOMLocation)
  171.  
  172. nsDOMLocation::nsDOMLocation()
  173. {
  174.   /* member initializers and constructor code */
  175. }
  176.  
  177. nsDOMLocation::~nsDOMLocation()
  178. {
  179.   /* destructor code */
  180. }
  181.  
  182. /* attribute DOMString hash; */
  183. NS_IMETHODIMP nsDOMLocation::GetHash(nsAString & aHash)
  184. {
  185.     return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. NS_IMETHODIMP nsDOMLocation::SetHash(const nsAString & aHash)
  188. {
  189.     return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191.  
  192. /* attribute DOMString host; */
  193. NS_IMETHODIMP nsDOMLocation::GetHost(nsAString & aHost)
  194. {
  195.     return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197. NS_IMETHODIMP nsDOMLocation::SetHost(const nsAString & aHost)
  198. {
  199.     return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201.  
  202. /* attribute DOMString hostname; */
  203. NS_IMETHODIMP nsDOMLocation::GetHostname(nsAString & aHostname)
  204. {
  205.     return NS_ERROR_NOT_IMPLEMENTED;
  206. }
  207. NS_IMETHODIMP nsDOMLocation::SetHostname(const nsAString & aHostname)
  208. {
  209.     return NS_ERROR_NOT_IMPLEMENTED;
  210. }
  211.  
  212. /* attribute DOMString href; */
  213. NS_IMETHODIMP nsDOMLocation::GetHref(nsAString & aHref)
  214. {
  215.     return NS_ERROR_NOT_IMPLEMENTED;
  216. }
  217. NS_IMETHODIMP nsDOMLocation::SetHref(const nsAString & aHref)
  218. {
  219.     return NS_ERROR_NOT_IMPLEMENTED;
  220. }
  221.  
  222. /* attribute DOMString pathname; */
  223. NS_IMETHODIMP nsDOMLocation::GetPathname(nsAString & aPathname)
  224. {
  225.     return NS_ERROR_NOT_IMPLEMENTED;
  226. }
  227. NS_IMETHODIMP nsDOMLocation::SetPathname(const nsAString & aPathname)
  228. {
  229.     return NS_ERROR_NOT_IMPLEMENTED;
  230. }
  231.  
  232. /* attribute DOMString port; */
  233. NS_IMETHODIMP nsDOMLocation::GetPort(nsAString & aPort)
  234. {
  235.     return NS_ERROR_NOT_IMPLEMENTED;
  236. }
  237. NS_IMETHODIMP nsDOMLocation::SetPort(const nsAString & aPort)
  238. {
  239.     return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241.  
  242. /* attribute DOMString protocol; */
  243. NS_IMETHODIMP nsDOMLocation::GetProtocol(nsAString & aProtocol)
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247. NS_IMETHODIMP nsDOMLocation::SetProtocol(const nsAString & aProtocol)
  248. {
  249.     return NS_ERROR_NOT_IMPLEMENTED;
  250. }
  251.  
  252. /* attribute DOMString search; */
  253. NS_IMETHODIMP nsDOMLocation::GetSearch(nsAString & aSearch)
  254. {
  255.     return NS_ERROR_NOT_IMPLEMENTED;
  256. }
  257. NS_IMETHODIMP nsDOMLocation::SetSearch(const nsAString & aSearch)
  258. {
  259.     return NS_ERROR_NOT_IMPLEMENTED;
  260. }
  261.  
  262. /* [noscript] void reload (in boolean forceget); */
  263. NS_IMETHODIMP nsDOMLocation::Reload(PRBool forceget)
  264. {
  265.     return NS_ERROR_NOT_IMPLEMENTED;
  266. }
  267.  
  268. /* void replace (in DOMString url); */
  269. NS_IMETHODIMP nsDOMLocation::Replace(const nsAString & url)
  270. {
  271.     return NS_ERROR_NOT_IMPLEMENTED;
  272. }
  273.  
  274. /* void assign (in DOMString url); */
  275. NS_IMETHODIMP nsDOMLocation::Assign(const nsAString & url)
  276. {
  277.     return NS_ERROR_NOT_IMPLEMENTED;
  278. }
  279.  
  280. /* DOMString toString (); */
  281. NS_IMETHODIMP nsDOMLocation::ToString(nsAString & _retval)
  282. {
  283.     return NS_ERROR_NOT_IMPLEMENTED;
  284. }
  285.  
  286. /* End of implementation class template. */
  287. #endif
  288.  
  289.  
  290. #endif /* __gen_nsIDOMLocation_h__ */
  291.